package com.seago.iceberg.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Title:
 * <p>
 * description:
 *
 * @Company: 中国船舶集团海舟系统技术有限公司-武汉
 * @author: yangs
 * @since: 2023-05-08 13:49
 * @version: 1.0
 **/
@Component
@ConfigurationProperties(prefix = "seago.iceberg")
@Data
public class IcebergConfiguration {
	private CatalogConf catalog = new CatalogConf();
	private HadoopConf hadoop = new HadoopConf();
	private String namespace;
	private String basePackage;

	@Data
	public class CatalogConf {
		private String warehouse;
		private String uri;

		public String getWarehouse() {
			return warehouse;
		}

		public void setWarehouse(String warehouse) {
			this.warehouse = warehouse;
		}

		public String getUri() {
			return uri;
		}

		public void setUri(String uri) {
			this.uri = uri;
		}
	}

	@Data
	public class HadoopConf {
		private String fsS3aEndpoint;
		private String fsS3aAccess;
		private String fsS3aSecret;
	}
}
